package com.wang.model.Diagnosis;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.wang.domain.enums.*;
import com.wang.model.BaseVM;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;


@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("保存诊断结果模型模型")
public class SaveDiagnosisVM extends BaseVM {

    @ApiModelProperty(value = "图片文件属性说明",hidden = false)
    private MultipartFile picData;

    @ApiModelProperty(value = "舌苔属性说明",hidden = false)
    private DiagnosisCoatedEnum coated;

    @ApiModelProperty(value = "舌质属性说明",hidden = false)
    private DiagnosisColorEnum color;

    @ApiModelProperty(value = "裂纹属性说明",hidden = false)
    private DiagnosisCrackEnum crack;

    @ApiModelProperty(value = "齿痕属性说明",hidden = false)
    private DiagnosisIndentationEnum indentation;

    @ApiModelProperty(value = "诊断结果属性说明",hidden = false)
    private String diagnosis;

//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
//    @ApiModelProperty(value = "诊断时间属性说明",hidden = false)
//    private Date createTime;
}
